package vn.com.bookstore.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.com.bookstore.dao.PersonDao;
import vn.com.bookstore.domain.model.Person;

@Service
public class PersonService {
	@Autowired
	private PersonDao personDao;
	
	public List<Person> getAllPerson(){
		return personDao.getListPerson();
	}
	
	public void addNewPerson(Person p){
		personDao.insert(p);
	}
}
